package com.globant.google.mendoza;

import com.globant.google.mendoza.malbec.SeleniumBuyerRobot;
import com.globant.google.mendoza.malbec.SeleniumBuyerRobotFactory;
import com.globant.google.mendoza.malbec.XmlCartEncoder;

public final class SeleniumBuyerRobotFactoryMock
extends SeleniumBuyerRobotFactory {

  public SeleniumBuyerRobotFactoryMock(final String theBaseUrl,
      final XmlCartEncoder theEncoder, final String theFirefoxPath,
      final String theSeleniumHost, final int theSeleniumPort) {
    super(MendozaTestConstants.sampleURL, new XmlCartEncoder(),
        MendozaTestConstants.sampleDirectory, MendozaTestConstants.sampleURL,
        MendozaTestConstants.samplePortNumber);
    System.out
        .println(
            "SeleniumBuyerRobotFactoryMock.SeleniumBuyerRobotFactoryMock()");
  }

  public SeleniumBuyerRobot createSeleniumBuyerRobot(
      final String merchantId, final String merchantKey) {
    System.out
        .println(
            "SeleniumBuyerRobotFactoryMock.createSeleniumBuyerRobot() - start");
    SeleniumBuyerRobotMock seleniumMock = new SeleniumBuyerRobotMock(
        MendozaTestConstants.sampleURL, MendozaTestConstants.sampleURL,
        new XmlCartEncoder(), merchantKey, MendozaTestConstants.sampleURL,
        MendozaTestConstants.sampleDirectory,
        MendozaTestConstants.samplePortNumber);
    System.out
        .println(
            "SeleniumBuyerRobotFactoryMock.createSeleniumBuyerRobot() - end");
    return seleniumMock;
  }
}
